<?php

use Biz\service\theParagraph\Store;
use Biz\tools\GoodsExposureLog;
/**
 * @deprecated
 */
class StoreInfoAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $storeId = $this->getRequest()->getQuery('id');
        if (ctype_digit($storeId)) {
            $storeInfo = Store::getStoreInfo($storeId);
        } else {
            throw new \Exception('ID不能为空');
        }
        $this->setSuccess($storeInfo);
        GoodsExposureLog::addLog($this->getRequest(), $storeInfo,$storeId);
    }
}